package com.ruoyi.common.enums;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备工作状态
 *
 * @author Gua
 * @version 1.0
 * @date 2022-02-21
 */
public enum WorkingStatus {
    WAITING(0, "待命中"),
    WORKING(1, "工作中"),
    FIXING(2, "维护中");

    private final int value;
    private final String description;

    WorkingStatus(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)
                .append("value", getValue())
                .append("description", getDescription())
                .toString();
    }
}
